package uvt.gui.mainframe.searchroute;

import java.awt.Component;

import javax.swing.JButton;

import uvt.gui.mainframe.object.command.Command;
import uvt.map.JMapViewer;
import uvt.map.graph.algorithm.result.LoadingFrame;

public class SearchRoute extends JButton implements Command {
	
	Component comp;
	
	public SearchRoute(JMapViewer map,Component comp) {
		super("Search Route");	
		this.comp = comp;
	}
	
    public void execute() {
    	new LoadingFrame(comp);
	}

}
